import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/HelloWorld'
import OrderHome from '../components/order/OrderHome'
import Login from '../components/login/Login'
import BindStudent from '../components/bind/BindStudent'
import BindContinue from '../components/bind/BindContinue'
import TodaySetMeal from "../components/setmeal/TodaySetMeal";
import Calendar from 'vue-mobile-calendar'
Vue.use(Router)
Vue.use(Calendar);
const routes = [
  {
    path: '/',
    redirect: '/Login' // 重定向
  },
  {
    path: '/Login',
    name: 'Login',
    component: Login
  },
  {
    path: '/OrderHome',
    component: OrderHome
  },
  {
    path: '/BindStudent',
    component: BindStudent
  },
  {
    path: '/BindContinue',
    component: BindContinue
  },
  {
    path: '/HelloWorld/:abc',
    name: 'HelloWorld',
    component: HelloWorld
  },
  {
    path: '/TodaySetMea',
    name: 'TodaySetMeal',
    component: TodaySetMeal
  },
]
export default new Router({
  routes,
  mode: 'history'
})
